<template>
  <div>
    <cusDialog title="重置密码" ref="dialog" width="20%">
      <el-form ref="psdForm" :model="psdForm" label-width="80px">
        <el-form-item label="新密码">
          <el-input v-model.trim="psdForm.newpsd1" show-password placeholder="请输入新密码"></el-input>
        </el-form-item>

      </el-form>
    </cusDialog>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const formOrigin = () => ({
  newpsd1: "",
});

let psdForm = ref(formOrigin());

const dialog = ref(null);
const showHandler = () => {
  dialog.value.show = true;
};

const hideHandler = () => {
  psdForm.value = formOrigin();
};

defineExpose({ showHandler });
</script>

<style lang="scss" scoped></style>